package com.zyc.socket.controller;

import com.zyc.annotation.RpcReference;
import com.zyc.bean.Hello;
import com.zyc.service.HelloService;
import org.springframework.stereotype.Component;

/**
 * @author zyc
 * @create 2022--05--31 9:35
 */
@Component
public class HelloController {

    @RpcReference
    HelloService helloService;

    public void test() {
        String helloBack = helloService.hello(new Hello("你好世界", "来自spring注解的socket"));
        System.out.println(helloBack);
    }
}
